import request from '@/utils/request'

// 查询主要诉求模块列表
export function listMain_appeal(query) {
  return request({
    url: '/archive_info/main_appeal/list',
    method: 'get',
    params: query
  })
}

// 查询主要诉求模块详细
export function getMain_appeal(id) {
  return request({
    url: '/archive_info/main_appeal/' + id,
    method: 'get'
  })
}

// 新增主要诉求模块
export function addMain_appeal(data) {
  return request({
    url: '/archive_info/main_appeal',
    method: 'post',
    data: data
  })
}

// 修改主要诉求模块
export function updateMain_appeal(data) {
  return request({
    url: '/archive_info/main_appeal',
    method: 'put',
    data: data
  })
}

// 删除主要诉求模块
export function delMain_appeal(id) {
  return request({
    url: '/archive_info/main_appeal/' + id,
    method: 'delete'
  })
}

// 导出主要诉求模块
export function exportMain_appeal(query) {
  return request({
    url: '/archive_info/main_appeal/export',
    method: 'get',
    params: query
  })
}